import request from './request';
// 示例：用户登录
export function UserLogin(data) {
  return request({
    url: '/login',
    method: 'post',
    data
  });
}
//获取验证码
export function GetCode(data) {
  return request({
    url: '/getPhoneCode',
    method: 'get',
    params:data
  });
}


// 示例：验证码验证登录
export function CodeLogin(data) {
  return request({
    url: '/checkPhoneCode',
    method: 'get',
    params:data
  });
}
export  function  getUserInfoHandle(data) {
  return request({
    url: '/getUserInfo',
    method: 'get',
    params:data
  });
}

export function  editPassword(data) {
  return request({
    url: '/user/updatePassword',
    method: 'post',
    data
  });
}

// 获取门店列表
export  function  homeGetBusinessList() {
  return request({
    url: '/home/getBusinessList',
    method: 'get'
  });
}

// 共享合伙人与生涯规划师首页统计查询
export function profitHomeProfitSta(data) {
  return request({
    url: '/profit/homeProfitSta',
    method: 'get',
	params:data
  });
}

// 负责人首页统计查询
export function phoneStaGetStoreDutySta() {
  return request({
    url: '/phoneSta/getStoreDutySta',
    method: 'get'
  });
}

// 其余角色首页统计查询
export function phoneStaGetStoreManSta(data) {
  return request({
    url: '/phoneSta/getStoreManSta',
    method: 'get',
	params:data
  });
}